home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
vbexwait
/
execwait.frm
< prev
next >
Wrap
Text File
|
1995-05-08
|
1KB
|
47 lines
VERSION 2.00
Begin Form Form1
Caption = "Form1"
ClientHeight = 4020
ClientLeft = 1095
ClientTop = 1485
ClientWidth = 7365
Height = 4425
Left = 1035
LinkMode = 1 'Source
LinkTopic = "Form1"
ScaleHeight = 4020
ScaleWidth = 7365
Top = 1140
Width = 7485
End
Sub Form_click ()
Print "Copying a file ..."
ShellAndWait ("\command.com /c copy \autoexec.bat \x.x")
Kill ("\x.x") 'Note \x.x will not exist until
'previous ShellAndWait has finished
Print
Print " ShellAndWait was written by: "
Print
Print " Mike Caughran [71034,2371]"
Print " Cedar Island Software"
Print " 9018 Division St."
Print " Juneau, Alaska 99801"
Print
Print
Print " Be sure to download Cedar Island Link"
Print
Print " A top quality com program which supports all major filetransfer protocols."
Print " Cedar Island Link is in GO IBMCOM section 3 as CILINK.ZIP"
End Sub
Sub ShellAndWait (CommandString$)
ID% = Shell(CommandString$, 3)
Do
X% = DoEvents()
Loop Until GetModuleUsage(ID%) = 0
End Sub